from ldap3 import Server, Connection

loginUser = 'CN=Administrator,CN=Users,DC=kingworth,DC=com'
loginPwd = 'cisco'
server = Server('ldap://192.168.1.72:389', connect_timeout=5)
conn = Connection(server, loginUser, loginPwd, auto_bind=True)


conn.search('cn=users,dc=kingworth,dc=com', '(|(objectCategory=user))')

print(conn.response)